package finalgame.Engine;

public class weakness {
	public static int getweakness(int type){

		if (type == Constants.FIRETYPE) {
			return Constants.WATERTYPE;
		} else if (type == Constants.WATERTYPE) {
			return Constants.ELECTYPE;
		} else if (type == Constants.GRASSTYPE) {
			return Constants.FIRETYPE;
		} else if ( type == Constants.ROCKTYPE ) {
			return Constants.GRASSTYPE;
		} else if (type == Constants.ELECTYPE) {
			return  Constants.ROCKTYPE;}
		else
			return Constants.NORMAL;
	}
}
